#define _CRT_SECURE_NO_WARNINGS 1

//#include<stdio.h>
//#include<stddef.h>
//struct S
//{
//	char a;
//	int b;
//	char c;
//};
//#define OFFSETOF(type,mem) (size_t)(&((type*)0)->mem)
//int main()
//{
//	struct S s;
//	printf("%zd\n", OFFSETOF(struct S,b));
//	return 0;
//}

#include<stdio.h>

#define SWAP_BIT(n) ((n&0x55555555)<<1)+((n&0xaaaaaaaa)>>1)

int main()
{
	int num = 10;
	printf("%d\n", SWAP_BIT(num));
	return 0;
}